package com.yuanrui.auth.application.convert;

import com.yuanrui.auth.application.dto.AuthPermissionDTO;
import com.yuanrui.auth.application.dto.AuthRolePermissionDTO;
import com.yuanrui.auth.domain.entity.AuthPermissionBO;
import com.yuanrui.auth.domain.entity.AuthRolePermissionBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 用户信息转换器
 */
@Mapper
public interface AuthRolePermissionConverter {
    AuthRolePermissionConverter INSTANCE = Mappers.getMapper(AuthRolePermissionConverter.class);
    //将用户信息BO转换为用户信息DTO
    AuthRolePermissionDTO convert(AuthRolePermissionBO authRolePermissionBO);

    //将用户信息DTO转换为用户信息BO
    AuthRolePermissionBO convertToBO(AuthRolePermissionDTO authRolePermissionDTO);
}
